/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Radio.Object;

import java.util.ArrayList;
import javax.faces.model.SelectItem;
import java.io.Serializable;

/**
 *
 * @author Huu Vinh
 */
public class User implements Serializable{
    private String uid, pwd, confirm, contact, mobile, tele, address, email, city;
    private boolean gender;

    public User(String uid, String pwd, String confirm, String contact, String mobile, String tele, String address, String email, String city, boolean gender) {
        this.uid = uid;
        this.pwd = pwd;
        this.confirm = confirm;
        this.contact = contact;
        this.mobile = mobile;
        this.tele = tele;
        this.address = address;
        this.email = email;
        this.city = city;
        this.gender = gender;
    }

    public User() {
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getConfirm() {
        return confirm;
    }

    public void setConfirm(String confirm) {
        this.confirm = confirm;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTele() {
        return tele;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final User other = (User) obj;
        if ((this.uid == null) ? (other.uid != null) : !this.uid.equals(other.uid)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 79 * hash + (this.uid != null ? this.uid.hashCode() : 0);
        return hash;
    }
    
    public ArrayList<SelectItem> getItem() {
        ArrayList arr = new ArrayList<SelectItem>();
        arr.add(new SelectItem("1", "HCM"));
        arr.add(new SelectItem("2", "HN"));
        arr.add(new SelectItem("3", "DN"));
        return arr;
    }
}
